package com.shiikong_memory.yez.MySQLAPI.DaoImpl;

import com.shiikong_memory.yez.MySQLAPI.Dao.LotteryDataMapper;
import com.shiikong_memory.yez.MySQLAPI.Dao.NoticeMapper;
import com.shiikong_memory.yez.MySQLAPI.JavaBean.LotteryDataBean;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LotteryDataServer {

    @Resource
    private LotteryDataMapper lotteryDataMapper;
    
        
    public List<LotteryDataBean> getAll() {
        return lotteryDataMapper.getAll();
    }

        
    public LotteryDataBean getByChatChannelId(String KookId) {
        return lotteryDataMapper.getByChatChannelId(KookId);
    }

        
    public boolean addLotteryData(String KookId, long ts, String data, long size) {
        return lotteryDataMapper.addNotice(KookId, ts, data, size);
    }

        
    public boolean updateByKookId(String KookId, long ts, String data, long size) {
        return lotteryDataMapper.updateByKookId(KookId, ts, data, size);
    }

        
    public boolean deleteByKookId(String KookId) {
        return lotteryDataMapper.deleteByKookId(KookId);
    }
}
